package com.kgc.kmall.managerweb.controller;

import com.kgc.kmall.bean.PmsSkuInfo;
import com.kgc.kmall.service.SkuService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController

public class SkuController {

    @Reference
    SkuService skuService;

    @RequestMapping("/saveSkuInfo")
    public Integer saveSkuInfo(@RequestBody PmsSkuInfo pmsSkuInfo){
        //添加商品信息
        int i=skuService.saveSkuInfo(pmsSkuInfo);
        return i;
    }


}
